<!DOCTYPE html>
<html>
	<head>
		<title>打卡明细</title>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1.0,user-scalable=no"/>
		<script src="js/flexible.js"></script>
		<link rel="stylesheet" type="text/css" href="css/style.css"/>
	</head>
	<body class="Summary">
		<div id="teamAttendanceDailyList">
			<ul>
				<li v-for="sub in list" @click="toDetail(sub.workerId,sub.realname)" :workerId="sub.workerId" v-cloak>
					<div class="headPortrait">
						<img onload="imgClass(event)" :src="imgUrl+sub.headimg"/>
					</div>
					<div class="personalMes">
						<h3>{{sub.realname}} {{sub.phone}}</h3>
						<p>考勤组：{{sub.workgroupName}}</p>
					</div>
				</li>
			</ul>
		</div>
		<script src="js/vue.min.js"></script>
		<script src="js/all.js" type="text/javascript" charset="utf-8"></script>
	  <script src="js/axios.min.js"></script>
	  <script src="js/message.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			var vm = new Vue({
				el:"#teamAttendanceDailyList",
				data:{
					list:[]
				},
				methods:{
					query:function(){
						axios.get(url+"/getGroupAttenDayCountStatusList",{
						
//						axios.get(url+"/getGroupAttenDayCountStatusList",{
							params:{
                                projectId:GetQueryString('projectId'),
                                groupId:GetQueryString('groupId'),
								/*projectId:GetQueryString('projectId')||"0",
								groupId:GetQueryString('groupId')||"10639",*/
								attendDate:GetQueryString('attendDate'),
								attenStatus:GetQueryString('attenStatus')
							},
							headers:{"token":GetQueryString("token")}
                            //headers:{"token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpdyI6IlR1ZSBBdWcgMTUgMTc6MTQ6MzAgQ1NUIDIwMTcifQ.S6k4iRxnqEKtoWT4DiSYEVchOAFy1VaivQM2nXoaORsuserId:679"}
						}).then(function(data){
							this.list = data.data.data;
							console.log(this.list)
						}.bind(this))
					},
					toDetail:function(workerId,userName){
//						console.log('teamAttendanceDetails.html?&projectId='+GetQueryString("projectId")+'&groupId='+GetQueryString("groupId")+'&attendDate='+GetQueryString("attendDate")+'&workerId='+workerId+'&userName='+userName)
						window.location.href='teamAttendanceDetails.html?projectId='+GetQueryString("projectId")+'&groupId='+GetQueryString("groupId")+'&attendDate='+GetQueryString("attendDate")+'&workerId='+workerId+'&userName='+userName
					}
				},
				mounted:function(){
			  	this.$nextTick(function(){   // 文档加载后调用
			  		this.query()
					});
			  }
			})
		</script>
	</body>
</html>
